package com.ruoyi.project.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.domainenum.ProjectDemoDataType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * demo对象 project_demo
 * 
 * @author ruoyi
 * @date 2022-09-01
 */
public class ProjectDemo
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** enum名称 */
    @Excel(name = "enum名称")
    private ProjectDemoDataType enumDataType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public ProjectDemoDataType getEnumDataType() {
        return enumDataType;
    }

    public void setEnumDataType(ProjectDemoDataType enumDataType) {
        this.enumDataType = enumDataType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("enumDataType", getEnumDataType())
            .toString();
    }
}
